package com.revoltingdevelopment.perquackey;

import java.util.*;

public class PerquackeyDiceCupAlt {

	public PerquackeyDiceCupAlt() {

		theDice = new PerquackeyDieAlt[13];

		for (int i = 0; i < 13; i++) {
			theDice[i] = new PerquackeyDieAlt(letters[i]);
		}
	}

	public PerquackeyDieAlt[] getDice(boolean vulnerable) {

		return Arrays.copyOf(theDice, vulnerable ? 13 : 10);
	}

	public void roll() {

		for (PerquackeyDieAlt theDie : theDice) {
			theDie.roll();
		}
	}

	private PerquackeyDieAlt[] theDice = null;

	private char[][] letters = {
		{'M', 'O', 'C', 'O', 'W', 'P'},
		{'E', 'E', 'A', 'A', 'A', 'E'},
		{'U', 'N', 'T', 'F', 'P', 'I'},
		{'H', 'R', 'F', 'U', 'I', 'S'},
		{'Z', 'J', 'Q', 'V', 'E', 'X'},
		{'L', 'T', 'N', 'D', 'R', 'O'},
		{'W', 'L', 'Y', 'B', 'O', 'O'},
		{'E', 'E', 'E', 'A', 'A', 'A'},
		{'K', 'R', 'H', 'B', 'I', 'T'},
		{'M', 'R', 'I', 'S', 'G', 'U'},
		{'B', 'P', 'N', 'H', 'F', 'L'},
		{'K', 'C', 'G', 'M', 'J', 'D'},
		{'S', 'V', 'W', 'Y', 'Q', 'S'}
	};
}
